<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
	<script>
		let studentId = '2306010131' //创建变量,并赋值学号
		let array1 = ["Python","Unity","框架库"]
        let kcname;
		for(let i = 0;i < array1.length;i++){
			if (array1[i] === "框架库"){
				kcname = "框架库"
			}
		}
        alert(`当前考生考生号为${studentId}，考试课程为：${kcname}`)
	</script>
</body>
</html>